## 使用request
# 先导包 pip install requests
import requests

url = 'http://www.baidu.com/'
response = requests.get(url=url)
print(response.text)